﻿[[title="工作周报",pagesize="",orderby="",condition=""]]
<script language="javascript" type="text/javascript">
    function window.onload() {
        wmsCommon.setEditDivStyle("tabDiv", 0.99);
        wmsBiz.dealWithTextAreas($("textarea"));
    }
    function changeWindowSize() {
        wmsCommon.setEditDivStyle("tabDiv", 0.99);
    }


    $(function () {
        if ($("#LableTitle").length == 0) {
            wmsBiz.childActityInit();
        }

    });
</script>
<div style="display: none;" id="childActity">
</div>
<div style="display: none;" id="projectL">
</div>
<div style="display: none;">
    <span>$weekReport.Rows.get_Item(0).get_Item("userNo").Render("defaultValue=$session.get_Item('userNo');")</span>
    <span class="reportStatus">$weekReport.Rows.get_Item(0).get_Item("reportStatus").Render()</span>
</div>
<table class="DisplayArea" id="MainTableInfo" cellpadding="0" cellspacing="0" align="center"
    style="width: 100%; height: 100%">
    <tr>
        <td class="headmiddle" style="height: 26px">
            #if($request.QueryString.get_Item("opt")=="1") <span id="LableTitle">新增工作周报</span>
            #else <span id="LableTitle2">修改工作周报</span> #end
        </td>
    </tr>
    <tr>
        <td class="centermiddle">
            <table id="contenttb" class="DisplayTable">
                <tr>
                    <td style="height: 25px; width: 80px">
                        报告周期:
                    </td>
                    <td style="height: 25px;">
                        $weekReport.Rows.get_Item(0).get_Item("startDate").Render()&nbsp;至&nbsp;$weekReport.Rows.get_Item(0).get_Item("endDate").Render()
                    </td>
                </tr>
                <tr style="display: none" class="projectGUID">
                    <td colspan="4">
                        $weekReport.Rows.get_Item(0).get_Item("weekReportGUID").Render("defaultValue=$dataContext.Evaluate('sys(#CommonFunction.CreateGUID())');")
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td colspan="4" valign="top">
                        <!--tab  标签列表  -->
                        <div id="first" style="margin-left: 10px">
                            <div class="on" lang="tab1" title="周报内容" align="center">
                                周报内容</div>
                        </div>
                        <div id="tabDiv">
                            <div id="tab1" style="border: 1px solid #95B0CB; margin-top: 0; margin-left: 10px;
                                width: 100%;">
                                <table>
                                    <tr>
                                        <td colspan="5" style="text-align: center;">
                                            #if( $weekReport.Rows.get_Item(0).get_Item("reportStatus")=="0" ||$request.QueryString.get_Item("opt")=="1")
                                            $render.RenderButton("text=新增; displayType=button ; actionType=new;clientMethod=  wmsCommon.newRow('weekReportItems');")
                                            $render.RenderButton(" text=删除; displayType=button ; actionType=delete; clientMethod=DelRow('weekReportItems');")
                                            #end
                                        </td>
                                    </tr>
                                </table>
                                <table class="tblList" id="weekReportItems" style="border-collapse: collapse; color: #95B0CB"
                                    border="0" rules="all" cellspacing="0">
                                    <tr class="rows">
                                        <th style="width: 30px;">
                                            <span style="cursor: hand" onclick="wmsCommon.checkedAll('weekReportItems')">选择</span>
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("activityType").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("childActity").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("workDone").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("workDoneUnit").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("taskExplain").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("taskStartDate").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("taskEndDate").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("projectGUID").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("percentage").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("clientName").DisplayName
                                        </th>
                                        <th>
                                            $weekReport.Childs.get_Item(0).Columns.get_Item("area").DisplayName
                                        </th>
                                    </tr>
                                    #foreach($row in $weekReport.Childs.get_Item(0).Rows)[[section:weekReportItems{]]
                                    <tr onmouseout="wmsCommon.onMouseOut(this)" onmouseover="wmsCommon.onMouseOver(this)">
                                        <td align="center" style="width: 40px">
                                            <input type="checkbox" style="border: 0; cursor: hand" />
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("activityType").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("childActity").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("workDone").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("workDoneUnit").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px; width:400px">
                                            $row.get_Item("taskExplain").Render("onmouseover=wmsBiz.textAreaBindMouseOnver(this);")
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("taskStartDate").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("taskEndDate").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("projectGUID").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("percentage").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("clientName").Render()
                                        </td>
                                        <td style="padding-left: 3px; padding-right: 3px;">
                                            $row.get_Item("area").Render()
                                        </td>
                                    </tr>
                                    [[}]] #end
                                </table>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
            <!-- edit content end-->
        </td>
    </tr>
    <tr style="height: 20px;">
        <td colspan="4" valign="middle" style="text-align: center; height: 20px;">
            <div style="height: 20px; background-color: rgb(233, 231, 215);">
                #if( $weekReport.Rows.get_Item(0).get_Item("reportStatus")=="0" || $request.QueryString.get_Item("opt")=="1")
                $render.RenderButton(" text=保存; displayType=button ; actionType=save; clientMethod=submitValidatePage();serverMethod=wmsCommon.pubSaveAndRefPage3('weekReport','',0);")
                $render.RenderButton(" text=提交; displayType=button ; actionType=save; clientMethod=submitValidatePage();serverMethod=wmsCommon.pubSaveAndRefPage3('weekReport','',1);")
                #end $render.RenderButton(" text=关闭; displayType=button ; actionType=close; clientMethod=wmsCommon.closeWin();")
            </div>
        </td>
    </tr>
</table>
